package com.example.hehecat.yuejian1.mvp.contract;

import com.example.hehecat.yuejian1.mvp.model.bean.GameBean;
import com.example.hehecat.yuejian1.mvp.model.bean.SuccessBean;

import retrofit2.Callback;
import rx.Subscriber;

public interface GameInfoContract {
    interface Model{
        void getGame(int game_id, Subscriber<GameBean> subscriber);
        void gameEnroll(int user_id, int game_id, Callback<SuccessBean> callback);
        void collectGame(int user_id, int game_id, Callback<SuccessBean> callback);
        void isGameCollect(int user_id, int game_id, Callback<SuccessBean> callback);
    }

    interface View {
        void showMsg(String msg);
        void setCollect();
        void setUnCollect();
        void collectGame();
        void isGameCollect();


    }

    interface Presenter {
        void CollectGame(int user_id,int game_id);
        void isCollected(int user_id, int game_id);
        void gameEnroll(int user_id, int game_id);
    }
}
